<html xmlns:th="http://www.thymeleaf.org">
<div id="updateUser" style="margin-top: 12px;margin-right: 23px;">
    <form class="layui-form" action="/user/update" method="post">
        <input type="hidden" name="id" th:value="${userDo.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">用户姓名</label>
            <div class="layui-input-block">
                <input type="text" name="username" th:value="${userDo.username}" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">密码</label>
            <div class="layui-input-block">
                <input type="text" name="password" placeholder="为空时为旧密码" autocomplete="off" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" id="formSubmit" lay-submit="" lay-filter="demo1" style="margin-left: 45px;">立即提交</button>
            </div>
        </div>
    </form>

</div>


<script type="text/javascript">


    layui.use(['form', 'laydate'], function () {
        var form = layui.form
            , laydate = layui.laydate
            , $ = layui.jquery

        form.render();

        //日期时间选择器
        laydate.render({
            elem: '#date1'
            , type: 'time'
        });

        // form.on('select(productNameList)', function (data) {
        //     settle_amount_push_time = data.elem[data.elem.selectedIndex].title;
        //     $("#date1").val(settle_amount_push_time)
        //
        // })
    })


</script>

</html>
